<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.util.*"%>
<%@ page import="com.gzgi.framework.context.*"%>
<%@ page import="com.gzgi.framework.resource.*"%>
<%@ page import="com.gzgi.framework.repository.*"%>
<%@ page import="com.gzgi.framework.util.*"%>
<%@ page import="org.apache.commons.lang.StringUtils"%>
<%
		RepositoryService repositoryService = (RepositoryService)ContextFactory.getBean("repositoryService");
		org.springframework.core.io.Resource resource = new org.springframework.core.io.ClassPathResource("/quartz.txt");
		Repository repository = new Repository();
		repository.setName(UUID32.getUUID());
		repository.setRepositoryId("test");
		repository.setNodeId("1001001");
		repository.setTitle("quartz.txt");
		repository.setInputStream(resource.getInputStream());
		repository.setContentType("text/plain");
		repositoryService.save(repository);
		Map paramMap = new HashMap();
		paramMap.put("repositoryId", "test");
        paramMap.put("keywords", "中文");
        repositoryService.search(1,10, paramMap);
%>